x is a Time value or DateTime value.
The Hour function extracts the hour portion of a Time value and returns it as a whole number.
Use this function anytime you need to display just the hour portion of a Time value or to perform calculations based on hours.
The following examples are applicable to both Basic and Crystal syntax:
Hour(CTime(10, 00, 30)) - Hour(CTime(6, 00, 00))
This function is designed to work like the Visual Basic function of the same name.
Seagate Software IMG Holdings, Inc. http://www.seagatesoftware.com Support services: http://support.seagatesoftware.com |